package vip.xiaonuo.controller.deviceapi;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.xiaonuo.core.pojo.response.ResponseData;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;

@RestController
public class CodeEditController {


    @GetMapping("/codeEdit/getEditClass")
    public ResponseData responseData(String className) throws IOException {
        String content = new String(Files.readAllBytes(Paths.get("D:\\idea_source\\agent\\fast-tools" +
                "\\home\\classdump\\org.springframework.boot.devtools.restart.classloader.RestartClassLoader-17952b27" +
                "\\com\\dewod\\fast\\tools\\controller\\AttachController.java")));
        return ResponseData.success(content);
    }
}
